<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>编辑课程信息</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet"  href="css/EditCourse.css">
    <script type="text/javascript" src="/layui/src/layui.all.js"></script>
    <script type="text/javascript" src="/layui/src/jquery-3.2.1.min.js"></script>
    <script type="text/javascript" src="/layui/src/layui.js"></script>
    <script type="text/javascript" src="js/EditCourse.js"></script>

    <link href="/video/css/video-js.min.css" rel="stylesheet">
</head>
<body>
<div class="layui-container">
    <div class="layui-row">
        <form id="form_id">
            <input type="hidden" name="course" id="courseid">
            <table border="1">
                <tr>
                    <th class="th" colspan="6">编辑课程信息</th>
                    <input type="hidden" name="id">
                </tr>
                <tr>
                    <td class="td1">课程名称：</td>
                    <td>
                        <input type="text" class="layui-input" name="courseName" id="courseName">
                    </td>
                    <td class="td1">上传时间：</td>
                    <td>
                        <input type="text" class="layui-input"  name="createDate" readonly= "true" id="createDate">
                    </td>
                    <td class="td1">上传人：</td>
                    <td>
                        <input type="text" class="layui-input"  name="createName" readonly= "true" id="createName">
                        <input type="hidden" name="createId">
                    </td>
                </tr>
                <tr>
                    <td class="td1">课程售价：</td>
                    <td>
                        <input type="text" class="layui-input" name="courseNprice" id="courseNprice" onkeyup="value=value.replace(/[^\d{1,}\.\d{1,}|\d{1,}]/g,'')">
                    </td>


                    <input type="hidden" class="layui-input" name="coursePrice" id="coursePrice">

                    <td class="td1">课程关键字：</td>
                    <td colspan="1">
                        <input type="text" class="layui-input input1" name="coursePrimary" id="coursePrimary" maxlength="10">
                    </td>
                    <td class="td1">课程分类：</td>
                    <td>
                        <input type="text" class="layui-input input1"  name="courseCatory" id="courseCatory" readonly= "true">
                        <i class="layui-icon layui-icon-spread-left" onclick="selCouCategory()"></i>
                        <input type="hidden" name="courseCatoryId" id="courseCatoryId">
                    </td>
                </tr>
                <tr>
                    <td class="td1">点赞量：</td>
                    <td>
                        <input type="text" class="layui-input" name="courseName" id="likNum"  readonly= "true">
                    </td>
                    <td class="td1">收藏量：</td>
                    <td>
                        <input type="text" class="layui-input"  name="createDate" readonly= "true" id="collectNum">
                    </td>
                    <td class="td1">评论量：</td>
                    <td>
                        <input type="text" class="layui-input"  name="createName" readonly= "true" id="shareNum">
                        <input type="hidden" name="createId">
                    </td>
                </tr>
                <tr>
                    <td class="td1">课程介绍：</td>
                    <td colspan="5">
                        <textarea class="textarea1 layui-textarea" name="courseIntro" id="courseIntro"></textarea>
                    </td>
                </tr>
                <tr>
                    <td class="td1">备注：</td>
                    <td colspan="5">
                        <textarea class="layui-textarea textarea2"  name="remarks" id="remarks"></textarea>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="td2">
                        <span class="span1"><i class="layui-icon layui-icon-upload"></i>修改视频</span>
                        <button type="button" class="layui-btn" id="upVideo">
                            <i class="layui-icon">&#xe67c;</i>上传视频
                        </button>
                    </td>
                </tr>
                <tr>
                    <td class="td3 td5">视频：<input type="hidden" id="courseUrl"/></td>
                    <td colspan="5" class="td5" id="td_video">
                        <!--进度条-->
                        <div class="layui-progress layui-progress-big" lay-showPercent="yes" lay-filter="progressBar" id="progressBar">
                            <div class="layui-progress-bar layui-bg-blue" lay-percent="0%"></div>
                        </div>

                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="td2">
                        <span class="span1"><i class="layui-icon layui-icon-upload"></i>修改封面图</span>
                        <button type="button" class="layui-btn" id="test1">
                            <i class="layui-icon">&#xe67c;</i>上传图片
                        </button>
                    </td>
                </tr>
                <tr>
                    <td class="td3 td5">主图：</td>

                    <td colspan="5" class="td5" >

                        <p id="imgpid">

                        </p>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="td2">
                        <span class="span1"><i class="layui-icon layui-icon-upload"></i>修改预览图</span>
                        <button type="button" class="layui-btn" id="test2">
                            <i class="layui-icon">&#xe67c;</i>上传图片
                        </button>
                    </td>
                </tr>
                <tr>
                    <td class="td3 td5">预览图：</td>
                    <td colspan="5" class="td5" id="tdImg">

                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="td4">
                       <button class="button1 layui-btn layui-btn-sm layui-btn-primary" type="button" onclick="determine()">确定</button>
                        <button class="button2 layui-btn layui-btn-sm" onclick="cancels()" type="button">取消</button>
                    </td>
                </tr>
            </table>

            <input type="hidden" id="url" >
        </form>
    </div>
</div>
<script>

</script>
</body>
</html>